﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Text;
using ZYHand.DTO;
using ZYHand.Entity;

namespace ZYHand.IService
{
    public interface IElasticSearchService
    {
        public bool Post<T>(string index, T data) where T : class, new();
        public bool PostByString(string index, ExpandoObject data);

        public SearchData<T> Match<T>(string keywords, string index, int from, int size);

    }
}
